<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        section{
            width: 500px;
            height: 500px;
            /* border: 1px solid red; */
            margin: 50px auto;
            position: relative;
        }
        div{
            width: 50px;
            height: 350px;
            position: absolute;
            left: 210px;
            top: 0;
            transition: 0.8s;
            transform-origin: bottom center;
        }
        section:hover div:nth-child(1){
            background-color: rgb(230, 102, 43);
            transform: rotate(-75deg);
        }
        section:hover div:nth-child(2){
            background-color: rgb(87, 230, 43);
            transform: rotate(-50deg);
        }
        section:hover div:nth-child(3){
            background-color: rgb(211, 230, 43);
            transform: rotate(-25deg);
        }
        div:nth-child(4){
            background-color: rgb(199, 43, 230);
            transform: rotate(0deg);
        }
        section:hover div:nth-child(5){
            background-color: rgb(43, 62, 230);
            transform: rotate(25deg);
        }
        section:hover div:nth-child(6){
            background-color: rgb(43, 230, 230);
            transform: rotate(50deg);
        }
        section:hover div:nth-child(7){
            background-color: rgb(223, 178, 33);
            transform: rotate(75deg);
        }
    </style>
</head>
<body>
    <section>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </section>
</body>
</html>